package pl.edu.amu.wmi.kino.visualjavafx.model.animation.animationTime;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList;
import pl.edu.amu.wmi.kino.visualjavafx.model.animation.transformations.Transformation;

// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.06E03394-A4CD-D0BF-26C7-50E680E34FDA]
// </editor-fold> 
public class KeyFrame implements java.io.Serializable{

    // Code block for changeListeners support start
    protected PropertyChangeSupport propertySupport= new PropertyChangeSupport(this);
    public void addPropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.addPropertyChangeListener(listener);
    }
    public void removePropertyChangeListener(PropertyChangeListener listener) {
        propertySupport.removePropertyChangeListener(listener);
    }
    // Code block for changeListeners support end

    
    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.B6A0C39E-5D51-B5AC-7E75-03033DE2DBD6]
    // </editor-fold> 
    public KeyFrame () {
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.37902307-9FD5-2EB8-C27D-896ED24F2703]
    // </editor-fold> 
    public double getTime () {
        return time;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.9DBA748E-24F3-891B-EAB6-3AB21B367090]
    // </editor-fold> 
    public void setTime (double val) {
        double oldVal = this.time;
        this.time = val;
        propertySupport.firePropertyChange( "Time" , oldVal, val);
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.C9194E16-61DD-C94B-6898-AC4129E23577]
    // </editor-fold> 
    public ArrayList<Transformation> getTransformations () {
        return myTransformations;
    }


    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.D7F19BF6-6E10-7F3D-A442-29315B5ECE27]
    // </editor-fold>
    private double time=0.0d;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.34190025-AC44-ABAA-62F0-323C2D008018]
    // </editor-fold>
    private ArrayList<Transformation> myTransformations=new ArrayList<Transformation>();

}

